﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Snow
{
    public partial class FrmTextCenter : Form
    {
        public FrmTextCenter()
        {
            InitializeComponent();
        }

        private void FrmTextCenter_Load(object sender, EventArgs e)
        {
            int screenHeight = Screen.PrimaryScreen.WorkingArea.Height;
            int screenWidth = Screen.PrimaryScreen.WorkingArea.Width;
            this.Location = new Point((screenWidth-this.Width)/2, 20);
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            DateTime dateTime = DateTime.Now;
            label1.Text = string.Format("{0:dd/MM/yyyy}", dateTime);
            label2.Text = string.Format("{0:HH:mm:ss}", dateTime);
        }
    }
}
